const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/api': {
        target: 'https://www.fastmock.site/mock/416b07816c946ee77702faaae7f25f47/api',
        secure: false,
        // pathRewrite 对api进行代理到目标服务器后 会清空api 如果不清空就会是 '/apihttps://服务器地址'
        pathRewrite: { '^/api': '' }
      }
    }
  },
  productionSourceMap: false
})
